import Mock from "mockjs"
var jwt = require('jsonwebtoken');
var token = jwt.sign({ foo: 'bar' }, 'shhhhh');
Mock.mock("/api/login", {
    code: 200,
    message: '请求成功',
    data: "Bearer " + token

})
Mock.mock("/api/list", {
    code: 200,
    message: '请求成功',
    "data|10": [{
        'title': '@ctitle',
        'city': '@city(true)',
        'id': '@id',
        'tal': /^13[0-9]{9}$/,
    }]
})